package com.example.shortmessage.contract;

import com.example.shortmessage.base.BaseAbstractPresenter;
import com.example.shortmessage.base.IBaseView;
import com.example.shortmessage.data.entity.MessageData;

import java.util.List;

public interface DetailsContract {
    interface Model{
        List<MessageData> query(String number);
    }

    interface View<P extends DetailsContract.Presenter> extends IBaseView<P> {

    }

    abstract class Presenter<V extends DetailsContract.View> extends BaseAbstractPresenter<V> {
        public abstract List<MessageData> getData(String number);
        public abstract void sendMessage(String number, String message);
    }
}
